﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _controls_ctlCartItems : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    private string totalInfo = "";
    public string TotalInfo
    {
        get { return totalInfo; }
        set { totalInfo = value; }
    }

    private string paginationBar = "";
    public string PaginationBar
    {
        get { return paginationBar; }
        set { paginationBar = value; }
    }

    protected string GetOrderOpeBar(string statuscode, string orderid)
    {
        string toolsBar = "";
        switch (statuscode)
        {
            case "0":
                toolsBar += "<!--查看--><a href=\"shopping_checkout.aspx?orderid=" + orderid + "&otype=viewner\" title=\"查看订单\">查看</a> | ";
                toolsBar += "<!--修改--><a href=\"shopping_ordereditor.aspx?orderid=" + orderid + "&otype=modify\" title=\"修改订单\">修改</a> | ";
                toolsBar += "<!--支付--><a href=\"shopping_checkout.aspx?orderid=" + orderid + "&otype=charge\" title=\"立即兑换\">兑换</a> | ";
                toolsBar += "<!--作废--><a href=\"shopping_checkout.aspx?orderid=" + orderid + "&otype=cancel\" title=\"作废订单\">作废</a>";
                break;
            default:
                toolsBar += "<!--查看--><a href=\"shopping_checkout.aspx?orderid=" + orderid + "&otype=viewner\" title=\"查看订单\">查看</a>";
                break;
        }
        return toolsBar;
    }
    protected string GetInsuranceOrderOpeBar(string statuscode, string orderid)
    {
        string toolsBar = "";
        switch (statuscode)
        {
            case "0":
                toolsBar += "<!--查看--><a href=\"insurance_orderdetails.aspx?objectid=" + orderid + "&otype=viewner\" title=\"查看订单\">查看</a> | ";
                toolsBar += "<!--修改--><a href=\"insurance_ordereditor.aspx?objectid=" + orderid + "&otype=modify\" title=\"修改订单\">修改</a> | ";
                toolsBar += "<!--支付--><a href=\"insurance_orderpayment.aspx?objectid=" + orderid + "&otype=payment\" title=\"立即支付\">付款</a> | ";
                toolsBar += "<!--作废--><a href=\"insurance_orderdetails.aspx?objectid=" + orderid + "&otype=cancel\" title=\"作废订单\">作废</a>";
                break;
            default:
                toolsBar += "<!--查看--><a href=\"insurance_orderdetails.aspx?objectid=" + orderid + "&otype=viewner\" title=\"查看订单\">查看</a>";
                break;
        }
        return toolsBar;
    }
}